<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/3/23
  Time: 11:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>部门主管主页</title>
    <script type="text/javascript" src="../script/jquery-3.2.1.js"></script>
    <link href="../css/homePage.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="../script/commonFunction.js"></script>
    <script type="text/javascript" src="../script/sectionChiefPage.js"></script>
    <style type="text/css">
        #main_body {
            background-image: url("../images/bg90.jpg");
        }

        #admin_menu_div {
            padding-left: 25%;
            overflow: hidden;
            margin-top: -20px;
            border-bottom: double 2px #bbc;
        }

        #admin_menu_div_ul {
            overflow: hidden;
        }

        #admin_menu_div_ul h4 {
            position: relative;
            float: left;
            margin-right: 15%;
            border-color: #ffd8d7;
        }

        #showTime {
            float: right;
            margin-right: 50%;
        }

        table {
            background-color: rgba(0, 130, 230, 0.6);
        }

        #myTable2 td {
            text-align: center;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $("#admin_main_div").children().hide();

            tick();

            <%--var applyNotInterview = "${applyNotInterview}";--%>
            <%--console.log("applyNotInterview = " + applyNotInterview);--%>
            <%--if (applyNotInterview)--%>
            <%--if(confirm("您有新的应聘消息待查看，是否立即前往！"))--%>
            <%--window.location.href="../admin/goMessageManage";--%>

            <c:if test="${not empty applyNotInterview}">
            if (confirm("您有新的应聘消息待查看，是否立即前往！"))
                window.location.href = "../admin/goMessageManage";
            </c:if>

            <c:if test="${not empty trains}">
            if (confirm("您有新的培训消息待查看，是否立即前往！"))
                window.location.href = "../admin/goMessageManage";
            </c:if>

            $("#admin_message_manage").click(function () {
                window.location.href = "../admin/goMessageManage";
            });

            $("#admin_performance_manage").click(function () {
//                performances();
//                switchoverColor(this, $("#admin_performance"));
                performanceManage();
            });
        });


    </script>
</head>
<body id="main_body">
<div id="welcome">
    <c:if test="${manager != null}">
        欢迎${manager.name }登录&nbsp;&nbsp;&nbsp;<a onclick="quit(this)">退出</a>
    </c:if>
    <c:if test="${manager == null }">
        <%response.sendRedirect("../admin/login.jsp");%>
    </c:if>
    <input type="hidden" name="sId" value="${manager.section.id}">
    <span id="showTime">本地时间：<span id="localtime"></span></span>
</div>
<div id="admin_menu_div">
    <ul id="admin_menu_div_ul">
        <h4>
            <li id="admin_message_manage">通知管理</li>
        </h4>
        <h4>
            <li id="admin_performance_manage">绩效管理</li>
        </h4>
        <h4>
            <li id="quit" onclick="quit(this)">退出</li>
        </h4>
    </ul>
</div>
<div id="admin_main_div">

    <div id="admin_message">
    </div>

    <div id="admin_performance">
        <form action="../performance/addPerformance" method="post" onsubmit="return checkPerformanceSubmit()">
            <table cellpadding="0" cellspacing="0" border="1px" id="myTable2" style="width: 399px; margin: 36px auto;">
                <thead>
                <tr>
                    <th colspan="4">绩效管理</th>
                </tr>
                <tr>
                    <th>编号</th>
                    <th>姓名</th>
                    <th>职位</th>
                    <th>绩效</th>
                </tr>
                </thead>
                <tbody>
                <%--<c:if test="${empty entryTables}">--%>
                <%--<tr>--%>
                <%--<td colspan="6">还没有相关消息！</td>--%>
                <%--</tr>--%>
                <%--</c:if>--%>
                <%--<c:if test="${not empty entryTables}">--%>
                <%--<c:forEach var="et" items="${entryTables}" varStatus="vs">--%>
                <%--<tr>--%>
                <%--<td>${et.id}</td>--%>
                <%--<td>${et.resume.realName}</td>--%>
                <%--<td>${et.resume.position.section.section} ${et.resume.position.position}</td>--%>
                <%--<td class="td_performance">--%>
                <%--<input type="hidden" value="${et.resume.id}" name="performances[${vs.index}].resume.id">--%>
                <%--<input type="hidden" name="performances[${vs.index}].grantMonth" class="grantMonth">--%>
                <%--<input type="text" name="performances[${vs.index}].performance">--%>
                <%--</td>--%>
                <%--</tr>--%>
                <%--</c:forEach>--%>
                <%--</c:if>--%>
                </tbody>
                <tfoot>
                <tr>
                    <td colspan="4">
                        <input type="submit" value="提交">
                    </td>
                </tr>
                </tfoot>
            </table>
        </form>
    </div>

</div>

</body>
</html>
